<#assign contextPath=springMacroRequestContext.getContextPath() />
<#import "/public/frame/main.html" as frame />
<@frame.head "南航明珠商城-商品销售统计-订单明细">
</@frame.head>
<nav class="breadcrumb"><a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
   <div class="text-c">
    <form action="${contextPath}/order_count/get_order_detail_by_member" method="get" name="search_form" id="search_form">
       <input type="hidden" name="page" value="${pagination.pageNo}"  id="page" />  
       <input type="hidden" name="startTime" value="${startTime}"  id="startTime" />  
       <input type="hidden" name="endTime" value="${endTime}"  id="endTime" />  
       <input type="hidden" name="memberId" value="${memberId}"  id="memberId" />  
       
     </form>
    </div>
    <div class="cl pd-5 bg-1 bk-gray"> 
    <span class="r">共有数据：<strong>${pagination.totalCount}</strong> 条</span> </div>
    <table class="table table-border table-bordered table-bg">
        <thead>
        <tr  class="text-c">
            <th >订单编号</th>
            <th >商品数量</th>
            <th >里程</th>
            <th >下单时间</th>
        </tr>
        </thead>
        <tbody >
         <#list pagination.list as list> 
         <tr  class="text-c">
		    <td>${list.id}</td>
			<td>${list.orderPayInfo.orderNum}</td>
			<td>${list.orderPayInfo.mileages}</td>
			<td>${list.orderTime?string("yyyy-MM-dd HH:mm:ss")}</td>
         </tr>
         </#list>
        </tbody>
    </table>
    <div id="div_page" style="padding-top: 10px;float: right"></div>
</div>	
<@frame.end "default">
</@frame.end>
</html>
<script type="text/javascript" src="${contextPath}/resources/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="${contextPath}/resources/js/laypage/laypage.js"></script>
<script type="text/javascript">
var path="${contextPath}";
laypage({
    cont: 'div_page',//容器。值支持id名、原生dom对象，jquery对象。
    pages: ${pagination.totalPage},//通过后台拿到的总页数
    curr:  ${pagination.pageNo} || 1, //当前页
	skip: true, //是否开启跳页
	first: 1, //将首页显示为数字1,。若不显示，设置false即可
	last: ${pagination.totalPage}, //将尾页显示为总页数。若不显示，设置false即可
    jump: function(obj , first){//触发分页后的回调
        if(!first){ //点击跳页触发函数;当前页为obj.curr
            $("#page").val(obj.curr);
            $("#search_form").submit();
        }
    }
})  

</script>